home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5543 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: news.ioffe.rssi.ru!usenet
  2. From: "Eugene I Levin" <Levin@lh.ioffe.rssi.ru>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Seriuos bug in BC4.52 !!!
  5. Date: Mon,  5 Feb 1996 17:22:13 +0300 (MSK)
  6. Organization: Ioffe Institute
  7. Distribution: world
  8. Message-ID: <ABLAX5nO2B@lh.ioffe.rssi.ru>
  9. NNTP-Posting-Host: relay.ioffe.rssi.ru
  10. X-Mailer: dMail [Demos Mail for DOS v1.23]
  11.  
  12. CLVN11A@prodigy.com (Richard Croteau) wrote:
  13.  
  14. > I just installed Borland C++ V4.52 on my 75MHz
  15. > pentium running Windows 95 (with MS Plus).  The problem that
  16. > I have is that, in any simple programs involving floating
  17. > point numbers, I get a "floating point: Overflow" run time
  18. > error whenever I enter a number with a decimal point.  This
  19. > error seems to be invalid.  Running the same program on the
  20. > university computer does not result in this error and the
  21. > programs execute properly.  Could some sort of installation
  22. > error have occurred?
  23.  
  24. I think it might be interesting for you to read the following
  25. messages from comp.databases.paradox:
  26.  
  27. Jamie Brown <Jamie_Brown%Legis@state.ak.us> wrote:
  28.  
  29. > Try this:
  30. > Create a table with a single numeric field.
  31. > Enter 2 records with the values -25.2  and 132.2
  32. > Run a calc sum query.
  33. >
  34. > The correct answer of course is 107.  I get 1061 on two different
  35. > machines both running Win95 (486 & pentium).  DOS PDox 4.5 and PWF 5.0
  36. > under Win3.1 work correctly.
  37. >
  38. > If I add a third record with the value 1 the query answer is 1071!?
  39. >
  40. > I called Borland developer tech help.  They couldn't reproduce the
  41. > problem.  Can anyone else?  Or am I going crazy?
  42.  
  43. Then a lot of people reproduced the bug. Then there was a very hot
  44. discussion when different folks blamed Borland, Pentium processor,
  45. the Lord above etc. etc. Everything ended up with the following
  46. solution:
  47.  
  48. >From: Jamie Brown <Jamie_Brown@legis.state.ak.us>
  49. >Subject: [NEWS] Floating Point Error
  50. >Date: Thu, 28 Dec 1995 13:20:03 -0900
  51. >
  52. >The answer to this problem seems to be that the SYSTEM AGENT in Win95
  53. >PLUS! causes floating point math errors.  I removed it and the calc sum
  54. >worked correctly.
  55.  
  56. >From: Jamie Brown <Jamie_Brown@legis.state.ak.us>
  57. >Subject: [NEWS] Re: Win95 & PFW5.0,  2+2=5  ???
  58. >Date: Tue, 02 Jan 1996 18:05:51 -0900
  59. >
  60. >Apparently in Win95 there is a known floating point math error that has
  61. >to do with using the System Agent.  I removed it and my error vanished.
  62. >There is also supposed to be a patch available from MS BBS.
  63.  
  64. Hope this helps,
  65. --
  66. Eugene I Levin, St.Petersburg, Russia (Levin@lh.ioffe.rssi.ru).
  67.  
  68.